package com.lahuan.demo.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lahuan.demo.entity.Test1;
import com.lahuan.demo.service.Test1Service;
import com.lahuan.demo.mapper.Test1Mapper;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;
/**
* <p>
* test1服务实现类
* </p>
* @author lahuan
* @since 2021-12-04
*/
@RequiredArgsConstructor
@Service
public class Test1ServiceImpl extends ServiceImpl<Test1Mapper, Test1> implements Test1Service {

    /**
     * 获取QueryWrapper对象
     * @return QueryWrapper对象
     */
    @Override
    public QueryWrapper<Test1> getQueryWrapper(){
        return Wrappers.<Test1>query();
    }

    /**
     * 获取Lambda形式的Wrapper对象
     * @return Lambda形式的Wrapper对象
     */
    @Override
    public  LambdaQueryWrapper<Test1> getLambdaWrapper(){
    return  Wrappers.<Test1>lambdaQuery();
    }

}
